package com.augurit.wf.common.dao;

import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.wf.common.entity.Jbpm4HistActInst;
import com.augurit.wf.mgmt.web.form.Jbpm4HistActInstForm;

@Repository
public class Jbpm4HistActInstDao extends BaseDao<Jbpm4HistActInst, Long> {
	
	/**
	 * 根据活动ID获取实例
	 * @param actInstDbid 活动ID
	 * @return 活动实例的form表示对象
	 */
	public Jbpm4HistActInstForm getForm(Long actInstDbid){
		Jbpm4HistActInstForm form = null;
		
		if(actInstDbid != null){
			Jbpm4HistActInst entity = this.findUniqueBy("dbid", actInstDbid);
			form = new Jbpm4HistActInstForm(entity);
		}
		
		return form;
	}
}